GdkX11GLContext: Use bitblit for swap if no buffer age support
authorAlexander Larsson <alexl@redhat.com>
Thu, 6 Nov 2014 11:21:28 +0000 (12:21 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 6 Nov 2014 11:24:43 +0000 (12:24 +0100)
commit1f3f933edf06ddc7dcb8e474fd845c99d8be01f9
tree51d2ce0a645a1b600eb849690b6ca57ee9323351
parent21189b9f7e158fe629b0924bf9ca74d66a5a8d76
GdkX11GLContext: Use bitblit for swap if no buffer age support

If buffer age is undefined and the updated area is not the whole
window then we use bit-blits instead of swap-buffers to end the
frame.

This allows us to not repaint the entire window unnecessarily if
buffer_age is not supported, like e.g. with DRI2.
gdk/gdkglcontext.c
gdk/gdkglcontextprivate.h
gdk/gdkwindow.c
gdk/x11/gdkglcontext-x11.c
gdk/x11/gdkglcontext-x11.h